//
//  WSNibView.m
//  WSFramework
//
//  Created by zhangcong on 2018/1/10.
//  Copyright © 2018年 zhangcong. All rights reserved.
//

#import "WSNibView.h"

@implementation WSNibView

+ (id) loadFromNib:(NSString*) nibName {
    NSBundle *bundle = [NSBundle bundleForClass:self.class];
    NSArray * nibArr = [bundle loadNibNamed:nibName owner:nil options:nil];
    return [nibArr lastObject];
}

+ (id) loadFromNib {
   return [self loadFromNib:NSStringFromClass(self.class)];
}

@end
